REAPER
REAPER
CC#
Created by REAPER on 2/4/2023 in #help
✅ Hosting Asp.Net Core 3.1 website on Ubuntu VPS
Hi, I've been trying to host my website on my Ubuntu 20.04 Cloud VPS but when I try using the command sudo systemctl start scuffed.service the status keeps giving me this error: ExecStart=/usr/bin/dotnet /root/Website/ScuffedManagerWeb.dll (code=exited, status=217/USER) I can see the files in their path locations but maybe I've messed up somewhere anyways rooF If anyone out there got any experience hosting websites then please post in here or feel free to DM me. rooHappy
127 replies
CC#
Created by REAPER on 12/7/2022 in #help
✅ Discord Modal submits but keep pending?
21 replies
CC#
Created by REAPER on 11/25/2022 in #help
✅ Mention user in footer in Embed (.Net 6)
9 replies
CC#
Created by REAPER on 11/3/2022 in #help
Slash command choices [Answered]
5 replies
CC#
Created by REAPER on 10/20/2022 in #help
Slash Command optional parameter [Answered]
Hi, I'm currently working on a poll command where I'm using SelectMenuBuilder and I want for there to be 2 required answers to create the poll. I want the rest of the answers to be optional. Is it possible to make parameters optional or will they always be required? So far I've only been able to find the [Optional] but it only hides it when using the command, but I'm still required to enter all 8 answers to make the command work...
[SlashCommand("poll", "Create a poll where people can vote")]
public async Task PollAsync(string Question, string answer1, string answer2, [Optional] string answer3, [Optional] string answer4,
[Optional] string answer5, [Optional] string answer6, [Optional] string answer7, [Optional] string answer8)
{
var pollBuilder = new SelectMenuBuilder()
.WithPlaceholder("Select an option")
.WithCustomId("menu-1")
.WithMinValues(1)
.WithMaxValues(1)
.AddOption(answer1, "answer-1")
.AddOption(answer2, "answer-2")
.AddOption(answer3, "answer-3")
.AddOption(answer4, "answer-4")
.AddOption(answer5, "answer-5")
.AddOption(answer6, "answer-6")
.AddOption(answer7, "answer-7")
.AddOption(answer8, "answer-8");

var builder = new ComponentBuilder()
.WithSelectMenu(pollBuilder);

await RespondAsync(Question, components: builder.Build());
[SlashCommand("poll", "Create a poll where people can vote")]
public async Task PollAsync(string Question, string answer1, string answer2, [Optional] string answer3, [Optional] string answer4,
[Optional] string answer5, [Optional] string answer6, [Optional] string answer7, [Optional] string answer8)
{
var pollBuilder = new SelectMenuBuilder()
.WithPlaceholder("Select an option")
.WithCustomId("menu-1")
.WithMinValues(1)
.WithMaxValues(1)
.AddOption(answer1, "answer-1")
.AddOption(answer2, "answer-2")
.AddOption(answer3, "answer-3")
.AddOption(answer4, "answer-4")
.AddOption(answer5, "answer-5")
.AddOption(answer6, "answer-6")
.AddOption(answer7, "answer-7")
.AddOption(answer8, "answer-8");

var builder = new ComponentBuilder()
.WithSelectMenu(pollBuilder);

await RespondAsync(Question, components: builder.Build());
98 replies
CC#
Created by REAPER on 10/19/2022 in #help
Slash Command purge [Answered]
Hi, I'm trying to use my old purge command as a slash command, but I end up giving me the Discord Error "Application Didn't Respond". I've tried making the var message a RespondAsync but the code is not happy about that rooCry Does anyone know how to solve this issue of mine?
var messages = await Context.Interaction.Channel.GetMessagesAsync(amount).FlattenAsync();
await (Context.Interaction.Channel as SocketTextChannel).DeleteMessagesAsync(messages);

var message = await Context.Interaction.Channel.SendMessageAsync($"{messages.Count()} messages deleted successfully!");
await Task.Delay(4000);
await message.DeleteAsync();
var messages = await Context.Interaction.Channel.GetMessagesAsync(amount).FlattenAsync();
await (Context.Interaction.Channel as SocketTextChannel).DeleteMessagesAsync(messages);

var message = await Context.Interaction.Channel.SendMessageAsync($"{messages.Count()} messages deleted successfully!");
await Task.Delay(4000);
await message.DeleteAsync();
25 replies
CC#
Created by REAPER on 10/12/2022 in #help
Slash Command works but gives error? [Answered]
11 replies
CC#
Created by REAPER on 10/3/2022 in #help
Cookies doesn't work after PC restart
1 replies