File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ let prefixSchema = new Schema({
99 } ,
1010} ) ;
1111
12- module . exports = model ( 'prefix' , prefixSchema ) ; ;
12+ module . exports = model ( 'prefix' , prefixSchema ) ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ module.exports = {
1313 if ( setupChannel ) return ;
1414
1515 const fetchGuildPrefix = await guildSettingsSchema . findOne ( { Guild : message . guild . id } ) ;
16- const guildPrefix = fetchGuildPrefix . Prefix ;
16+ const guildPrefix = fetchGuildPrefix ? .Prefix || client . config . prefix ;
1717
1818 let totalSeconds = ( client . uptime / 1000 ) ;
1919 let days = Math . floor ( totalSeconds / 86400 ) ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ module.exports = {
1313 if ( setupChannel ) return ;
1414
1515 const fetchGuildPrefix = await guildSettingsSchema . findOne ( { Guild : message . guild . id } ) ;
16- const guildPrefix = fetchGuildPrefix . Prefix ;
16+ const guildPrefix = fetchGuildPrefix ? .Prefix || client . config . prefix
1717
1818 let totalSeconds = ( client . uptime / 1000 ) ;
1919 let days = Math . floor ( totalSeconds / 86400 ) ;
You can’t perform that action at this time.
0 commit comments