File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ module.exports = class InteractionCreateEvent extends SebediusEvent {
94
94
async respondAutocomplete ( interaction ) {
95
95
if ( interaction . commandName === 'help' ) {
96
96
const focusedValue = interaction . options . getFocused ( ) ;
97
- const choices = this . bot . commands . map ( c => c . name ) ;
97
+ const choices = this . bot . commands . filter ( c => ! c . ownerOnly ) . map ( c => c . name ) ;
98
98
const filtered = choices . filter ( c => c . includes ( focusedValue ) ) ;
99
99
await interaction . respond ( filtered . map ( c => ( { name : c , value : c } ) ) ) ;
100
100
}
@@ -110,11 +110,11 @@ module.exports = class InteractionCreateEvent extends SebediusEvent {
110
110
logInteraction ( interaction ) {
111
111
let logMsg = `${ interaction . commandName } • ${ interaction . user . tag } (${ interaction . user . id } )` ;
112
112
if ( interaction . inGuild ( ) ) {
113
- logMsg += ` # ${ interaction . channel . name } (${ interaction . channelId } )`
114
- + ` @ ${ interaction . guild . name } (${ interaction . guild . id } )` ;
113
+ logMsg += ` #${ interaction . channel . name } (${ interaction . channelId } )`
114
+ + ` ∈ ${ interaction . guild . name } (${ interaction . guild . id } )` ;
115
115
}
116
116
else {
117
- logMsg += '@ DM' ;
117
+ logMsg += '∩ DM' ;
118
118
}
119
119
Logger . command ( logMsg ) ;
120
120
return logMsg ;
You can’t perform that action at this time.
0 commit comments