Skip to content

Commit 2c04884

Browse files
authored
Update slash_commands.py
Added deferment to devops roadmap
1 parent 14e61b9 commit 2c04884

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bot/slash_commands.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ async def hello(self, interaction: Interaction):
2323

2424
@bot.slash_command(name="vote", description="Vote for the server on different platforms!")
2525
async def vote(self, interaction: Interaction):
26+
await interaction.response.defer(ephemeral=True)
2627
view = ui.View()
2728
# Add voting platform buttons to the view
2829
view.add_item(ui.Button(style=ButtonStyle.url, label="Top.gg", url="https://top.gg/servers/930170875049820181"
@@ -99,6 +100,7 @@ async def userinfo(self, interaction: Interaction,
99100

100101
@bot.slash_command(name="roadmap", description="Learn more about DevOps Roadmap")
101102
async def devops_roadmap(self, interaction: Interaction):
103+
await interaction.response.defer(ephemeral=True)
102104
embeds = [
103105
nextcord.Embed(title="What is DevOps?",
104106
description="DevOps is all about bringing developers and operations teams together to improve software delivery. The key focus areas are automation, infrastructure and monitoring."),

0 commit comments

Comments
 (0)