Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
24 changes: 10 additions & 14 deletions src/slash-commands/uwc.command.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,9 @@ describe("SlashCommand: uwc", () => {
text: "Is this an Unwelcome Concept?",
},
answers: [
{ text: "No, leave as is" },
{ text: "No, but can be improved by change to achievement" },
{ text: "Yes, demote" },
{ text: "Yes, but can be salvaged by change to achievement" },
{ text: "No, leave as is" },
{ text: "No, transfer" },
{ text: "Need further discussion" },
],
allowMultiselect: false,
Expand Down Expand Up @@ -188,10 +187,9 @@ describe("SlashCommand: uwc", () => {
text: "Is this an Unwelcome Concept?",
},
answers: [
{ text: "No, leave as is" },
{ text: "No, but can be improved by change to achievement" },
{ text: "Yes, demote" },
{ text: "Yes, but can be salvaged by change to achievement" },
{ text: "No, leave as is" },
{ text: "No, transfer" },
{ text: "Need further discussion" },
],
allowMultiselect: false,
Expand Down Expand Up @@ -230,10 +228,9 @@ describe("SlashCommand: uwc", () => {
text: "Is this an Unwelcome Concept?",
},
answers: [
{ text: "No, leave as is" },
{ text: "No, but can be improved by change to achievement" },
{ text: "Yes, demote" },
{ text: "Yes, but can be salvaged by change to achievement" },
{ text: "No, leave as is" },
{ text: "No, transfer" },
{ text: "Need further discussion" },
],
allowMultiselect: false,
Expand Down Expand Up @@ -296,10 +293,9 @@ describe("SlashCommand: uwc", () => {
text: "Is this an Unwelcome Concept?",
},
answers: [
{ text: "No, leave as is" },
{ text: "No, but can be improved by change to achievement" },
{ text: "Yes, demote" },
{ text: "Yes, but can be salvaged by change to achievement" },
{ text: "No, leave as is" },
{ text: "No, transfer" },
{ text: "Need further discussion" },
],
allowMultiselect: false,
Expand Down Expand Up @@ -333,7 +329,7 @@ describe("SlashCommand: uwc", () => {
expect(callArgs.poll.allowMultiselect).toBe(false);
});

it("creates a poll with exactly 5 answer options", async () => {
it("creates a poll with exactly 4 answer options", async () => {
// ARRANGE
const member = createMockGuildMember({
roles: {
Expand All @@ -354,7 +350,7 @@ describe("SlashCommand: uwc", () => {

// ASSERT
const callArgs = (interaction.reply as any).mock.calls[0][0];
expect(callArgs.poll.answers).toHaveLength(5);
expect(callArgs.poll.answers).toHaveLength(4);
});
});

Expand Down
5 changes: 2 additions & 3 deletions src/slash-commands/uwc.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@ const uwcSlashCommand: SlashCommand = {
text: "Is this an Unwelcome Concept?",
},
answers: [
{ text: "No, leave as is" },
{ text: "No, but can be improved by change to achievement" },
{ text: "Yes, demote" },
{ text: "Yes, but can be salvaged by change to achievement" },
{ text: "No, leave as is" },
{ text: "No, transfer" },
{ text: "Need further discussion" },
],
allowMultiselect: false,
Expand Down
Loading