Skip to content

Commit c8ab1bb

Browse files
authored
Fix Guild#welcomeScreen handling (#1150)
1 parent daa0c8a commit c8ab1bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/structures/Guild.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,10 @@ class Guild extends Base {
264264
if(data.max_video_channel_users !== undefined) {
265265
this.maxVideoChannelUsers = data.max_video_channel_users;
266266
}
267-
if(data.guild.welcome_screen !== undefined) {
267+
if(data.welcome_screen !== undefined) {
268268
this.welcomeScreen = {
269-
description: data.guild.welcome_screen.description,
270-
welcomeChannels: data.guild.welcome_screen.welcome_channels && data.guild.welcome_screen.welcome_channels.map((c) => {
269+
description: data.welcome_screen.description,
270+
welcomeChannels: data.welcome_screen.welcome_channels && data.welcome_screen.welcome_channels.map((c) => {
271271
return {
272272
channelID: c.channel,
273273
description: c.description,

0 commit comments

Comments
 (0)