fix return type being RequestFailedError!void instead of RequestFailedError!Result(Types.Message)

This commit is contained in:
MjutBut 2025-06-05 23:39:48 +02:00
parent 88088e4ae8
commit 043c1518f0

View File

@ -132,7 +132,7 @@ pub fn sendMessageWithFiles(
self: *Self, self: *Self,
channel_id: Snowflake, channel_id: Snowflake,
wf: CreateMessageWithFile, wf: CreateMessageWithFile,
) RequestFailedError!void { ) RequestFailedError!Result(Types.Message) {
var buf: [256]u8 = undefined; var buf: [256]u8 = undefined;
const path = try std.fmt.bufPrint(&buf, "/channels/{d}/messages", .{channel_id.into()}); const path = try std.fmt.bufPrint(&buf, "/channels/{d}/messages", .{channel_id.into()});
@ -2068,4 +2068,3 @@ pub fn deleteSticker(self: *Self, guild_id: Snowflake, sticker_id: Snowflake) Re
return req.delete(path); return req.delete(path);
} }