File tree Expand file tree Collapse file tree 3 files changed +17
-9
lines changed
Expand file tree Collapse file tree 3 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,8 @@ const commands: CommandInfo[] = [
8585 category : "basic1" ,
8686 } ,
8787 {
88- name : "/anime [-include] [-exclude] [-min_size] [-max_size] [-high_quality ]" ,
89- value : "Summon a random anime image from sacred archives of pic.re " ,
88+ name : "/anime [-include] [-exclude] [-rating ]" ,
89+ value : "Summon a random anime image from the cultured realms " ,
9090 category : "basic1" ,
9191 } ,
9292 {
@@ -100,11 +100,6 @@ const commands: CommandInfo[] = [
100100 value : "View deathbattle statistics and leaderboards" ,
101101 category : "basic1" ,
102102 } ,
103- {
104- name : "/bossfight [@user1] [@user2] [@user3] [@user4]" ,
105- value : "Four warriors unite against a mighty boss in epic combat" ,
106- category : "basic1" ,
107- } ,
108103 {
109104 name : "/furry [@user]" ,
110105 value : "Check whether a user is a furry" ,
@@ -151,6 +146,11 @@ const commands: CommandInfo[] = [
151146 value : "Fetch a random trivia fact from the TDS Wiki" ,
152147 category : "basic2" ,
153148 } ,
149+ {
150+ name : "/family >subcommand" ,
151+ value : "Manage and view family relationships and trees" ,
152+ category : "basic2" ,
153+ } ,
154154 {
155155 name : "/help" ,
156156 value : "Display these instruments" ,
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ export async function execute(
104104 const result = await WebhookManager . initializeWebhook (
105105 interaction . guild ,
106106 channel . id ,
107- webhookName
107+ webhookName ,
108108 ) ;
109109
110110 const embed = new EmbedBuilder ( )
@@ -113,6 +113,13 @@ export async function execute(
113113 . setColor ( result . success ? "#00FF00" : "#FF0000" )
114114 . setTimestamp ( ) ;
115115
116+ if ( result . success && result . webhook ) {
117+ embed . addFields ( {
118+ name : "URL" ,
119+ value : `\`${ result . webhook . url } \`` ,
120+ } ) ;
121+ }
122+
116123 await interaction . editReply ( { embeds : [ embed ] } ) ;
117124 break ;
118125 }
Original file line number Diff line number Diff line change @@ -326,14 +326,15 @@ export class WebhookManager {
326326 guild : Guild ,
327327 channelId ?: string ,
328328 webhookName ?: string ,
329- ) : Promise < { success : boolean ; message : string } > {
329+ ) : Promise < { success : boolean ; message : string ; webhook ?: import ( "discord.js" ) . Webhook } > {
330330 try {
331331 let webhook = await this . getWebhook ( guild , webhookName ) ;
332332
333333 if ( webhook ) {
334334 return {
335335 success : true ,
336336 message : `Webhook "${ webhookName || "default" } " already exists and is functional` ,
337+ webhook,
337338 } ;
338339 }
339340
You can’t perform that action at this time.
0 commit comments