Merge pull request 'fix return type being RequestFailedError!void instead of RequestFailedError!Result(Types.Message)' (#2) from MjutBut/discord.zig:bugfix into master
Reviewed-on: #2
This commit is contained in:
commit
edd113abf7
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user