types(structures): add return type for methods (#341)

This commit is contained in:
Ayyan
2021-01-03 19:12:13 +04:00
committed by GitHub
parent 22011b4227
commit 55f68a242d
5 changed files with 47 additions and 29 deletions
+1 -1
View File
@@ -116,5 +116,5 @@ export interface Channel {
// METHODS
/** Send a message to the channel. Requires SEND_MESSAGES permission. */
send(content: string | MessageContent): Promise<Message>;
send(content: string | MessageContent): ReturnType<typeof sendMessage>;
}