@@ -81,20 +81,20 @@ export class DiscordClient {
8181 // Guild
8282 // ---------------------------------------------------------------------------
8383
84- getGuild (
84+ async getGuild (
8585 guildId : Snowflake ,
8686 withCounts = true
8787 ) : Promise < Result < RESTGetAPIGuildResult > > {
8888 return this . fetch ( `/guilds/${ guildId } ?with_counts=${ withCounts } ` ) ;
8989 }
9090
91- getGuildPreview (
91+ async getGuildPreview (
9292 guildId : Snowflake
9393 ) : Promise < Result < RESTGetAPIGuildPreviewResult > > {
9494 return this . fetch ( `/guilds/${ guildId } /preview` ) ;
9595 }
9696
97- getGuildWidget (
97+ async getGuildWidget (
9898 guildId : Snowflake
9999 ) : Promise < Result < RESTGetAPIGuildWidgetJSONResult > > {
100100 return this . fetch ( `/guilds/${ guildId } /widget.json` ) ;
@@ -104,7 +104,7 @@ export class DiscordClient {
104104 // Channels
105105 // ---------------------------------------------------------------------------
106106
107- getGuildChannels (
107+ async getGuildChannels (
108108 guildId : Snowflake
109109 ) : Promise < Result < RESTGetAPIGuildChannelsResult > > {
110110 return this . fetch ( `/guilds/${ guildId } /channels` ) ;
@@ -114,7 +114,7 @@ export class DiscordClient {
114114 // Roles
115115 // ---------------------------------------------------------------------------
116116
117- getGuildRoles (
117+ async getGuildRoles (
118118 guildId : Snowflake
119119 ) : Promise < Result < RESTGetAPIGuildRolesResult > > {
120120 return this . fetch ( `/guilds/${ guildId } /roles` ) ;
@@ -124,7 +124,7 @@ export class DiscordClient {
124124 // Members
125125 // ---------------------------------------------------------------------------
126126
127- getGuildMember (
127+ async getGuildMember (
128128 guildId : Snowflake ,
129129 userId : Snowflake
130130 ) : Promise < Result < RESTGetAPIGuildMemberResult > > {
@@ -159,7 +159,7 @@ export class DiscordClient {
159159 } ) ;
160160 }
161161
162- searchGuildMembers (
162+ async searchGuildMembers (
163163 guildId : Snowflake ,
164164 options : SearchMembersOptions
165165 ) : Promise < Result < RESTGetAPIGuildMembersSearchResult > > {
@@ -204,11 +204,13 @@ export class DiscordClient {
204204 // Bans
205205 // ---------------------------------------------------------------------------
206206
207- getGuildBans ( guildId : Snowflake ) : Promise < Result < RESTGetAPIGuildBansResult > > {
207+ async getGuildBans (
208+ guildId : Snowflake
209+ ) : Promise < Result < RESTGetAPIGuildBansResult > > {
208210 return this . fetch ( `/guilds/${ guildId } /bans` ) ;
209211 }
210212
211- getGuildBan (
213+ async getGuildBan (
212214 guildId : Snowflake ,
213215 userId : Snowflake
214216 ) : Promise < Result < RESTGetAPIGuildBanResult > > {
@@ -219,7 +221,7 @@ export class DiscordClient {
219221 // Audit Log
220222 // ---------------------------------------------------------------------------
221223
222- getAuditLog (
224+ async getAuditLog (
223225 guildId : Snowflake ,
224226 options : ListAuditLogOptions = { }
225227 ) : Promise < Result < RESTGetAPIAuditLogResult > > {
@@ -250,7 +252,7 @@ export class DiscordClient {
250252 // Invites
251253 // ---------------------------------------------------------------------------
252254
253- getGuildInvites (
255+ async getGuildInvites (
254256 guildId : Snowflake
255257 ) : Promise < Result < RESTGetAPIGuildInvitesResult > > {
256258 return this . fetch ( `/guilds/${ guildId } /invites` ) ;
@@ -260,13 +262,13 @@ export class DiscordClient {
260262 // Emojis & Stickers
261263 // ---------------------------------------------------------------------------
262264
263- getGuildEmojis (
265+ async getGuildEmojis (
264266 guildId : Snowflake
265267 ) : Promise < Result < RESTGetAPIGuildEmojisResult > > {
266268 return this . fetch ( `/guilds/${ guildId } /emojis` ) ;
267269 }
268270
269- getGuildStickers (
271+ async getGuildStickers (
270272 guildId : Snowflake
271273 ) : Promise < Result < RESTGetAPIGuildStickersResult > > {
272274 return this . fetch ( `/guilds/${ guildId } /stickers` ) ;
@@ -276,7 +278,7 @@ export class DiscordClient {
276278 // Scheduled Events
277279 // ---------------------------------------------------------------------------
278280
279- getGuildScheduledEvents (
281+ async getGuildScheduledEvents (
280282 guildId : Snowflake ,
281283 withUserCount = false
282284 ) : Promise < Result < RESTGetAPIGuildScheduledEventsResult > > {
0 commit comments