@@ -21,6 +21,7 @@ protected override IEnumerable<SlashCommand> GetSlashCommands()
2121 {
2222 Name = DELETE ,
2323 Handler = Delete ,
24+ Ephemeral = true ,
2425 MinimumPermissions = GuildPermissions . None . Modify (
2526 manageMessages : true
2627 ) ,
@@ -45,6 +46,7 @@ protected override IEnumerable<SlashCommand> GetSlashCommands()
4546 {
4647 Name = KICK_USER ,
4748 Handler = Kick ,
49+ Ephemeral = true ,
4850 MinimumPermissions = GuildPermissions . None . Modify (
4951 kickMembers : true
5052 ) ,
@@ -76,6 +78,7 @@ protected override IEnumerable<SlashCommand> GetSlashCommands()
7678 {
7779 Name = BAN_USER ,
7880 Handler = Ban ,
81+ Ephemeral = true ,
7982 MinimumPermissions = GuildPermissions . None . Modify (
8083 banMembers : true
8184 ) ,
@@ -107,6 +110,7 @@ protected override IEnumerable<SlashCommand> GetSlashCommands()
107110 {
108111 Name = CREATE_EMBED ,
109112 Handler = CreateEmbed ,
113+ Ephemeral = false ,
110114 MinimumPermissions = GuildPermissions . None . Modify (
111115 sendTTSMessages : true
112116 ) ,
@@ -169,7 +173,7 @@ private async Task Delete(SocketSlashCommand command)
169173
170174 var messages = await command . Channel . GetMessagesAsync ( amount ) . FlattenAsync ( ) ;
171175 await ( command . Channel as ITextChannel ) . DeleteMessagesAsync ( messages ) ;
172- await command . FollowupAsync ( $ "Deleted { amount } messages.", ephemeral : true ) ;
176+ await command . FollowupAsync ( $ "Deleted { amount } messages.") ;
173177 }
174178
175179 private async Task Kick ( SocketSlashCommand command )
@@ -181,16 +185,13 @@ private async Task Kick(SocketSlashCommand command)
181185 {
182186 await user . KickAsync ( reason ) ;
183187 if ( reason != null )
184- await command . FollowupAsync ( $ "Kicked { user . Mention } for \" { reason } \" .", ephemeral : true ) ;
188+ await command . FollowupAsync ( $ "Kicked { user . Mention } for \" { reason } \" .") ;
185189 else
186- await command . FollowupAsync ( $ "Kicked { user . Mention } .", ephemeral : true ) ;
190+ await command . FollowupAsync ( $ "Kicked { user . Mention } .") ;
187191 }
188192 else
189193 {
190- await command . FollowupAsync (
191- $ "This user is not a member of this guild.",
192- ephemeral : true
193- ) ;
194+ await command . FollowupAsync ( "This user is not a member of this guild." ) ;
194195 }
195196 }
196197
@@ -205,16 +206,13 @@ private async Task Ban(SocketSlashCommand command)
205206 {
206207 await user . BanAsync ( reason : reason ) ;
207208 if ( reason != null )
208- await command . FollowupAsync ( $ "Banned { user . Mention } for \" { reason } \" .", ephemeral : true ) ;
209+ await command . FollowupAsync ( $ "Banned { user . Mention } for \" { reason } \" .") ;
209210 else
210- await command . FollowupAsync ( $ "Banned { user . Mention } .", ephemeral : true ) ;
211+ await command . FollowupAsync ( $ "Banned { user . Mention } .") ;
211212 }
212213 else
213214 {
214- await command . FollowupAsync (
215- $ "This user is not a member of this guild.",
216- ephemeral : true
217- ) ;
215+ await command . FollowupAsync ( "This user is not a member of this guild." ) ;
218216 }
219217 }
220218
0 commit comments